package sg.edu.nus.iss.billing.gui;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JPanel;

/**
 * @author Yeo Hee Ling, Ananda, Saravana
 *
 */
public class StylePanel extends JPanel {
	
	private static final long serialVersionUID = 1L;
	
	public StylePanel() {
		super();
	}
	
	public void paintComponent(Graphics g) {
		ImageIcon icon = new ImageIcon("./images/bgPic.jpg");
		Image image = icon.getImage();
		
		super.paintComponent(g);
		
		if(image != null)
			g.drawImage(image, 0, 0, this);
	}
}
